/*
 +----------------------------------------------------------------------
 + Title        : common
 + Author       : huwl
 + Version      : 1.0.0
 + Initial-Time : 2024-12-31
 + Last-time    : 这个文件最后修改的时间 + 修改人的名称
 + Desc         : 公共接口
 +----------------------------------------------------------------------
*/

import type { RegionTree } from '@/types/common'
import type { ApiResponse } from '@/types/global'
import request from '@/utils/httpRequest'

/**
 * 地区列表,请求方式[GET]
 * 
 * @param any params -------------------------------------------请求参数
 * @returns <any, ApiResponse<RegionTree[]>>
 * @author huwl
 */
export const reqRegionTreeAPI = (params: any) => {
    return request<any, ApiResponse<RegionTree[]>>({
        method: 'GET',
        url: 'region/tree',
        params
    })
}